<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="./index.css" />
    <title>Document</title>
  </head>
  <body>
    <div class="box">
      <!-- 图片列表 -->
      <div class="img_box">
        <!-- 图片 -->
        <ul>
          <li class="img1"><img src="./imgs/01.jpeg" /></li>
          <li class="img2"><img src="./imgs/02.jpeg" /></li>
          <li class="img3"><img src="./imgs/03.jpeg" /></li>
          <li class="img4"><img src="./imgs/04.jpeg" /></li>
        </ul>

        <!-- 按钮 -->
        <div class="arrow_left">&lt;</div>
        <div class="arrow_right">&gt;</div>

        <!-- 小圆点 -->
        <div class="dot_box">
          <span class="active"></span>
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
    </div>
  </body>
  <script src="./index.js"></script>
  <script>
    // 实例化轮播图对象
    let c1 = new Carousel('.box');
  </script>
</html>
